<?php
/**
 * Created by PhpStorm.
 * User: Devil
 * Date: 2019/10/30
 * Time: 13:33
 */
namespace app\admin\model;

use think\facade\Db;
use think\Model;

class AdminCategory extends Model
{
    protected $name = 'admin_category';
    public function categoryList($is_pid = '',$pid = 0){
        if($is_pid){
            return Db::name($this->name)->where('pid',$pid)->select()->toArray();
        }else{
            return Db::name($this->name)->select()->toArray();
        }
    }
    public function insert_info(){}
    public function find_info(){}
    public function update_info(){}
    public function del(){}
}
